package edu.uob;

import java.util.LinkedHashMap;
import java.util.Map;

public class Row {
    private final Map<String, Object> rowData;

    public Row() {
        this.rowData = new LinkedHashMap<>();
    }

    // Getters and setters
    public Map<String, Object> getRowData() {
        return rowData;
    }

    // Method to add data to the row
    public void addData(String columnName, Object value) {
        rowData.put(columnName, value);
    }

    // Method to get value by column name
    public Object getValue(String columnName) {
        return rowData.get(columnName);
    }
}
